package cockpit.test;

import java.sql.SQLException;

import cockpit.comm.DTO.DatosException;
import cockpit.desarrollo.SERVICE.UsuarioSERVICE;

public class testProductos
{
    public void crearEscenario() throws DatosException, SQLException{
        String email="email";
        String email2="email2";
        UsuarioSERVICE.createBasicUSer(email, "Password" );
        System.out.println("creo un usuariobasico");
        System.out.println(UsuarioSERVICE.getUsersEmail( email ));
        UsuarioSERVICE.cambiarEmail( email, "email2" );
        System.out.println(UsuarioSERVICE.getUsersEmail( email ));
        System.out.println(UsuarioSERVICE.getUsersEmail( email2 ));
        UsuarioSERVICE.eliminarUsuario( email2 );
        System.out.println(UsuarioSERVICE.getUsersEmail( email ));
        
    }
    public static void main( String[] args ) throws SQLException
    {
        testProductos test= new testProductos( );
        try
        {
            test.crearEscenario( );
        }
        catch( DatosException e )
        {
            System.out.println("ERRORR " );
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    } 
    public void borrarEscenario(){
        
    }
    
    public void crearUsuarioTest(){
        
    }

}
